.SUFFIXES: .idl .cpp .o

PROGRAM1 =  exam04-huyingjian

OBJECTS1 =  exam04-huyingjian.o \
            LinerEqus.o \

OBJ_EXT =

CC	= `makeopts.sh cc`
CCFLAGS = `makeopts.sh ccflag corba_inc`
LDFLAGS = `makeopts.sh ldflag`
LIBS1	= `makeopts.sh syslib pub sam para odb_api corba_lib cwrap msg` -lquerysampleclient -lodb_syn -ldb_commit_client
LIBS2	= `makeopts.sh syslib pub sam para odb_api corba_lib cwrap msg` -lodb_syn
#win32 obd.lib pub.lib db_all_api.lib libsam_common.lib libsam_service.lib libparamanage.lib odb_apiall_lib.lib

MAKE_SO = `makeopts.sh mk_so`
MAKE_LIB = `makeopts.sh mk_lib`
LIB_PATH = `makeopts.sh lib_path`
CP = cp -p

.idl.cpp:
	@echo	$(IDL_CC) $<
	@	$(IDL_CC) $<

.cpp.o:
	@echo	$(CC) $(CCFLAGS) $<
	@	$(CC) $(CCFLAGS) $<

all : $(PROGRAM1)

$(PROGRAM1): $(OBJECTS1) $(OBJ_EXT)
	@echo   $(CC) -o $(PROGRAM1)  $(OBJECTS1) $(OBJ_EXT) $(LDFLAGS) $(LIBS1)
	@       $(CC) -o $(PROGRAM1)  $(OBJECTS1) $(OBJ_EXT) $(LDFLAGS) $(LIBS1)

# optional part

RM 	= rm -fr

clean:
	$(RM) $(PROGRAM1) $(OBJECTS1)

cleano:
	$(RM) $(OBJECTS1)

cleanp:
	$(RM) $(PROGRAM1)
